#include <iostream>
#include "FastSet.hh"



FastSet<unsigned char> fset;


int
main(void)
{
  fset.init(10);

  for(unsigned n=0; n!=1000; ++n)
    {
      fset.reset();
      std::cerr << "* fast set mark value: " 
		<< (unsigned) fset.mark 
		<< std::endl;

      for(unsigned k=0; k!=10; ++k)
	{
	  unsigned rnd = rand()%10;
	  std::cerr << n << " : "
		    << rnd << ' ' << (fset.count(rnd)? "already in set": "new")
		    << std::endl;
	  fset.insert(rnd);
	}
    }

  return 0;
}
